package com.swxy.club.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.swxy.club.enums.CheckinStatus;
import com.swxy.club.serializer.EnumFlatSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 易
 */

@Data
public class CheckinRecord {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long activityId;
    private Long userId;

    @JsonSerialize(using = EnumFlatSerializer.class)
    private CheckinStatus status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkinTime;

}
